using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class admin_gallery_menu : System.Web.UI.UserControl
{
	protected void Page_Load(object sender, EventArgs e)
	{
		hlViewAlbumPhotos.Visible = false;
		hlEditAlbum.Visible = false;
		hlAddPhoto.Visible = false;
		hlSelectAlbumPhotoEffects.Visible = false;
		hlAddLocalPhotos.Visible = false;
		hlEditPhoto.Visible = false;
		hlSelectPhotoEffects.Visible = false;
		hlGallerySettings.Visible = false;
		hlSlideShowSettings.Visible = false;
		hlMediaSettings.Visible = false;

		if (Request.QueryString["AlbumId"] != null)
		{
			Guid guid = new Guid(Request.QueryString["AlbumId"]);

			hlViewAlbumPhotos.NavigateUrl = hlViewAlbumPhotos.NavigateUrl + "?AlbumId=" + guid.ToString();
			hlEditAlbum.NavigateUrl = hlEditAlbum.NavigateUrl + "?AlbumId=" + guid.ToString();
			hlAddPhoto.NavigateUrl = hlAddPhoto.NavigateUrl + "?AlbumId=" + guid.ToString();
			hlAddLocalPhotos.NavigateUrl = hlAddLocalPhotos.NavigateUrl + "?AlbumId=" + guid.ToString();
			hlSelectAlbumPhotoEffects.NavigateUrl = hlSelectAlbumPhotoEffects.NavigateUrl + "?AlbumId=" + guid.ToString();

			hlViewAlbumPhotos.Visible = true;
			hlEditAlbum.Visible = true;
			hlSelectAlbumPhotoEffects.Visible = true;
			hlAddPhoto.Visible = true;
			hlAddLocalPhotos.Visible = true;

		}
		else if (Request.QueryString["PhotoId"] != null)
		{
			Guid guid = new Guid(Request.QueryString["PhotoId"]);
			hlEditPhoto.NavigateUrl = hlEditPhoto.NavigateUrl + "?PhotoId=" + guid.ToString();
			hlSelectPhotoEffects.NavigateUrl = hlSelectPhotoEffects.NavigateUrl + "?PhotoId=" + guid.ToString();

			hlEditPhoto.Visible = true;
			hlSelectPhotoEffects.Visible = true;
		}
		else if (Request.QueryString["PhotoEffectId"] != null)
		{
			Guid guid = new Guid(Request.QueryString["PhotoEffectId"]);
		}
		else if (Page.Request.RawUrl.ToLower().Contains("settings"))
		{			
			hlGallerySettings.Visible = true;
			hlSlideShowSettings.Visible = true;
			hlMediaSettings.Visible = true;
		}
	}
}

